import * as React from 'react';
import Services from '../pages/services/customer';
import Services1 from '../pages/services/service';

const { lazy } = React;
const Index = lazy(() => import('../pages/index'));
const Query = lazy(() => import('../pages/query'));
const Ticket = lazy(() => import('../pages/ticket'));
const Order = lazy(() => import('../pages/order'));
const Login = lazy(() => import('../pages/login/index'));
const Setting = lazy(() => import('../pages/setting/index'));
const Modifypwd = lazy(() => import('../pages/modifypwd/index'));
const Confirmpwd = lazy(() => import('../pages/confirmpwd/index'));
const OrderList = lazy(() => import('../pages/orderList/index'));
const Passengers = lazy(() => import('../pages/passengers/index'));
const PassengerDetail = lazy(() => import('../pages/passengerDetail/index'));
const OrderDetail = lazy(() => import('../pages/orderDetail/index'));
const OrderFinish = lazy(() => import('../pages/orderFinish/index'));
const User = lazy(() => import('../pages/user/index'));
const Register = lazy(() => import('../pages/register'));
const Information = lazy(() => import('../pages/index/information'));

const routes = [
  {
    path: '/',
    component: Index,
  },
  {
    path: '/orderDetail',
    exact: true,
    component: OrderDetail,
  },
  {
    path: '/query',
    exact: true,
    component: Query,
  },
  {
    path: '/ticket',
    exact: true,
    component: Ticket,
  },
  {
    path: '/order',
    exact: true,
    component: Order,
  },
  {
    path: '/orderList',
    exact: true,
    component: OrderList,
  },
  {
    path: '/orderFinish',
    exact: true,
    component: OrderFinish,
  },
  {
    path: '/passengers',
    exact: true,
    component: Passengers,
  },
  {
    path: '/passengerDetail',
    exact: true,
    component: PassengerDetail,
  },
  {
    path: '/login',
    exact: true,
    component: Login,
  },
  {
    path: '/register',
    exact: true,
    component: Register,
  },
  {
    path: '/setting',
    exact: true,
    component: Setting,
  },
  {
    path: '/modifypwd',
    exact: true,
    component: Modifypwd,
  },
  {
    path: '/confirmpwd',
    exact: true,
    component: Confirmpwd,
  },
  {
    path: '/services',
    exact: true,
    component: Services,
  },
  {
    path: '/services1',
    exact: true,
    component: Services1,
  },
  {
    path: '/user',
    exact: true,
    component: User,
  },
  {
    path: '/info',
    exact: true,
    component: Information,
  },
];

export default routes;
